//
// Created by kenny on 25-11-4.
//
#include <stdint.h>

#ifndef MCP_EXCEPTION_H
#define MCP_EXCEPTION_H
    typedef struct {
        int code;
        const char* desc;
    } ExceptionInfo;

    void emap_init();
    void emap_free();
    const ExceptionInfo* emap_get(int key);

#define INVALID_ACTION 1001
#define EMPTY_STRING 1020

#define INVALID_JSON 3001
#define JSON_NOT_ACTION 3003
#define JSON_INVALID_ACTION 3004
#define JSON_NOT_COMMAND 3005
#define JSON_INVALID_COMMAND 3006
#define JSON_NOT_SEQUENCE 3007


#endif //MCP_EXCEPTION_H
